package com.example.master.service.Impl;

import com.example.master.entity.vo.ServiceVo;
import com.example.master.mapper.*;
import com.example.master.service.*;
import com.example.master.utils.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
 * @Author Mr.Yuan
 * @Date 2023/2/7 15:46
 * @PackageName:com.example.master.service.Impl
 * @ClassName: ServicesServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
public class ServicesServiceImpl implements ServicesService {
    @Autowired
    private ServiceMapper serviceMapper;

    @Override
    public Result findAll(Integer id) {
        List<ServiceVo> allservice = serviceMapper.findAll(id);
        if (allservice != null) {
            return Result.success(allservice);
        }
        return Result.error("查询为空");
    }

}
